//
//  IGMyPaintingListManagerCell.m
//  jingdongfang
//
//  Created by boectoswteam on 2018/5/16.
//  Copyright © 2018年 BOE-SBG-CTO. All rights reserved.
//

#import "IGMyPaintingListManagerCell.h"

@implementation IGMyPaintingListManagerCell

- (void)awakeFromNib {
    [super awakeFromNib];
    _isSelected = NO;
    // Initialization code
    [self.selectImageV setImage:[UIImage imageNamed:@"pushiGallery_Normal"]];
}

-(void)layoutSubviews{
    [super layoutSubviews];
    
    [self.pictureName mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.mas_top).offset(12.5);
        make.right.mas_equalTo(self.mas_right).offset(15);
    }];
    
    [self.pictureNumber mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.mas_top).offset(35);
        make.right.mas_equalTo(self.mas_right).offset(15);
    }];
    
//    self.pictureName.text = @"黄河入海流之我不是名字";
//    self.pictureNumber.text = @"这个画单没有画作";
}

-(void)setData:(IGDrawModel *)data{
    self.pictureThumb.image = [UIImage imageNamed:data.image];
    self.pictureName.text = data.title;
    self.pictureNumber.text = [NSString stringWithFormat:@"共%@幅画作",data.productNum];
    
}

//@property (nonatomic, copy) NSString *pid; //画作id
//@property (nonatomic, copy) NSString *title;//画单名称
//@property (nonatomic, copy) NSString *content;//画单内容
//@property (nonatomic, copy) NSString *image;//画单封面
//@property (nonatomic, copy) NSString *secrecy;//是否私密
//@property (nonatomic, copy) NSString *productNum;//画作数量


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

}

@end
